<?php
class Site_Model_DbTable_Site extends KontorX_Db_Table_Tree_Abstract {
	protected $_name = 'site';
	protected $_level = 'level';
	
	protected $_dependentTables = array(
		'Site_Model_DbTable_HasNews',
		'Site_Model_DbTable_HasAlbum'
    );
    
    protected $_referenceMap    = array(
        'Template' => array(
            'columns'           => 'template_id',
            'refTableClass'     => 'System_Model_DbTable_Template',
            'refColumns'        => 'id',
            'refColumnsAsName'  => 'name'
        )
    );
}